/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author etudiant
 */

import javax.microedition.lcdui.game.GameCanvas;
import javax.microedition.lcdui.*;
import java.lang.Exception.*;

public class MyGameCanvas extends GameCanvas {
    private Graphics graphics;
    private Image Map;

    MyGameCanvas(){
    super(false);
    graphics = getGraphics();
    try{
        Map = Image.createImage("/map.jpg");
        graphics.drawImage(Map,0,0, Graphics.LEFT|Graphics.TOP);
    }
    catch (Exception e){
    graphics.drawString("ERROR",0,0, Graphics.RIGHT|Graphics.TOP);
    }
    }

 }

